Skip to content

Conversation

@TheDevMinerTV
Copy link

@TheDevMinerTV TheDevMinerTV commented Nov 18, 2024

Additional details
is-ci just imports the underlying ci-info package and exports a single field. We might as well just use that package instead and save ourselves (/NPM) the extra lookup and bandwidth (4kB).

image

This PR saves about 3kB per install for developers, and two HTTP call to NPMs API. It doesn't impact dependants.

@TheDevMinerTV TheDevMinerTV changed the title Replace is-ci with ci-info.isCi Replace is-ci with ci-info.isCI Nov 18, 2024
},
"dependencies": {
"camel-case": "^4.1.2",
"ci-info": "^4.1.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You removed a devDependency and introduced a new dependency 👀 . is-ci is just a devDependency. I don't see any harm in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants